package com.project.bean;

import java.util.List;

public class RoomBean {
    //    id
    private Integer id;
    //    地址
    private String address;
    //    最大容纳人数
    private Integer maxStu;
    //    已住人数
    private Integer stuNum;
    //    状态
    private String state;
    //    房间类型
    private String type;
    //    学生集合
    private List<StudentBean> student;

    public RoomBean() {
    }

//    public RoomBean(String address, Integer maxStu, String state, String type) {
//        this.address = address;
//        this.maxStu = maxStu;
//        this.state = state;
//        this.type = type;
//    }

//    public RoomBean(String address, Integer maxStu, String type) {
//        this.address = address;
//        this.maxStu = maxStu;
//        this.type = type;
//    }


    public RoomBean(String address, Integer maxStu, String state, String type) {
        this.address = address;
        this.maxStu = maxStu;
        this.state = state;
        this.type = type;
    }

    public Integer getStuNum() {
        return stuNum;
    }

    public void setStuNum(Integer stuNum) {
        this.stuNum = stuNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getMaxStu() {
        return maxStu;
    }

    public void setMaxStu(Integer maxStu) {
        this.maxStu = maxStu;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<StudentBean> getStudent() {
        return student;
    }

    public void setStudent(List<StudentBean> student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", maxStu=" + maxStu +
                ", stuNum=" + stuNum +
                ", state='" + state + '\'' +
                ", type='" + type + '\'' +
                '}' + "\n";
    }
}
